package com.gugee.ins.common.dal.spider.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Configuration;

/**
 * DataConsumerConfig
 * @author Huangxin
 */
@Configuration
@Getter
@Setter
public class SpiderConfig {

    /**
     * 爬虫接口
     */
    @NacosValue(value="${ins.spider.host}", autoRefreshed = true)
    String host;

    /**
     * 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.milliseconds:1}", autoRefreshed = true)
    int spiderSleepSecond;

    /**
     * uid 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.uid.milliseconds:1}", autoRefreshed = true)
    int spiderUidSleepSecond;

    /**
     * following 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.following.milliseconds:1}", autoRefreshed = true)
    int spiderFollowingSleepSecond;

    /**
     * follower 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.follower.milliseconds:1}", autoRefreshed = true)
    int spiderFollowerSleepSecond;

    /**
     * detail 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.detail.milliseconds:1}", autoRefreshed = true)
    int spiderDetailSleepSecond;

    /**
     * media 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.media.milliseconds:1}", autoRefreshed = true)
    int spiderMediaSleepSecond;

    /**
     * comment 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.comment.milliseconds:1}", autoRefreshed = true)
    int spiderCommentSleepSecond;

    /**
     * app media 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.app.media.milliseconds:1}", autoRefreshed = true)
    int spiderAppMediaSleepSecond;

    /**
     * app 标记商品的帖子 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.app.getProductMarkedList.milliseconds:1}", autoRefreshed = true)
    int spiderAppGetProductMarkedListSleepSecond;

    /**
     * app 标记播主的帖子 爬虫接口睡眠时间
     */
    @NacosValue(value="${ins.spider.sleep.app.getMarkedMediaList.milliseconds:1}", autoRefreshed = true)
    int spiderAppGetMarkedMediaByUserIdSleepSecond;

    /**
     * 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insBlogger.retry:1}", autoRefreshed = true)
    int spiderRetryTimes;

    /**
     * detail 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insBlogger.detail.retry:1}", autoRefreshed = true)
    int spiderBloggerDetailRetryTimes;

    /**
     * following 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insBlogger.following.retry:1}", autoRefreshed = true)
    int spiderBloggerFollowingRetryTimes;

    /**
     * follower 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insBlogger.follower.retry:1}", autoRefreshed = true)
    int spiderBloggerFollowerRetryTimes;

    /**
     * Comment 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insMediaComment.retry:1}", autoRefreshed = true)
    int spiderMediaCommentRetryTimes;

    /**
     * Media 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insMedia.retry:1}", autoRefreshed = true)
    int spiderMediaRetryTimes;

    /**
     * app Media 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insAppMedia.retry:1}", autoRefreshed = true)
    int spiderAppMediaRetryTimes;

    /**
     * app 标记商品的帖子 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insAppMediaGetProductMarkedList.retry:1}", autoRefreshed = true)
    int spiderAppGetProductMarkedListRetryTimes;

    /**
     * app 标记播主的帖子 爬虫接口重试次数
     */
    @NacosValue(value="${ins.spider.insAppMediaGetMarkedMediaList.retry:1}", autoRefreshed = true)
    int spiderAppGetMarkedMediaListRetryTimes;
}
